﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类vCheckQuery
	/// </summary>
	[Serializable]
	public class vCheckQuery : Entity 
	{ 
		 public vCheckQuery() 
            : base("vCheckQuery") 
        { 

        }


		#region Model
		private int _UID;
		private string _CheckNo;
		private string _CheckStatus;
		private string _CheckType;
		private string _PurchaseDate;
		private bool? _IsAllocate;
		private string _AllocateDate;
		private string _UserAllocate;
		private int? _UserAllocateID;
		private string _DeptCode;
		private string _DeptName;
		private bool? _IsConfirm;
		private string _UserConfirm;
		private int? _UserConfirmID;
		private string _ConfirmDate;
		private string _Note;
		private bool? _IsSelect;
		private int? _UserCreateID;
		private string _UserCreate;
		private string _CreateDate;
		private int? _UserModifyID;
		private string _UserModify;
		private string _ModifyDate;
	 
		/// <summary>
		/// 
		/// </summary>
		public int UID
		{
			get{ return _UID; }
			set
			{
				this.OnPropertyValueChange(_.UID,_UID,value);
				this._UID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckNo
		{
			get{ return _CheckNo; }
			set
			{
				this.OnPropertyValueChange(_.CheckNo,_CheckNo,value);
				this._CheckNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckStatus
		{
			get{ return _CheckStatus; }
			set
			{
				this.OnPropertyValueChange(_.CheckStatus,_CheckStatus,value);
				this._CheckStatus = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckType
		{
			get{ return _CheckType; }
			set
			{
				this.OnPropertyValueChange(_.CheckType,_CheckType,value);
				this._CheckType = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string PurchaseDate
		{
			get{ return _PurchaseDate; }
			set
			{
				this.OnPropertyValueChange(_.PurchaseDate,_PurchaseDate,value);
				this._PurchaseDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsAllocate
		{
			get{ return _IsAllocate; }
			set
			{
				this.OnPropertyValueChange(_.IsAllocate,_IsAllocate,value);
				this._IsAllocate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string AllocateDate
		{
			get{ return _AllocateDate; }
			set
			{
				this.OnPropertyValueChange(_.AllocateDate,_AllocateDate,value);
				this._AllocateDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserAllocate
		{
			get{ return _UserAllocate; }
			set
			{
				this.OnPropertyValueChange(_.UserAllocate,_UserAllocate,value);
				this._UserAllocate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserAllocateID
		{
			get{ return _UserAllocateID; }
			set
			{
				this.OnPropertyValueChange(_.UserAllocateID,_UserAllocateID,value);
				this._UserAllocateID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptCode
		{
			get{ return _DeptCode; }
			set
			{
				this.OnPropertyValueChange(_.DeptCode,_DeptCode,value);
				this._DeptCode = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptName
		{
			get{ return _DeptName; }
			set
			{
				this.OnPropertyValueChange(_.DeptName,_DeptName,value);
				this._DeptName = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsConfirm
		{
			get{ return _IsConfirm; }
			set
			{
				this.OnPropertyValueChange(_.IsConfirm,_IsConfirm,value);
				this._IsConfirm = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserConfirm
		{
			get{ return _UserConfirm; }
			set
			{
				this.OnPropertyValueChange(_.UserConfirm,_UserConfirm,value);
				this._UserConfirm = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserConfirmID
		{
			get{ return _UserConfirmID; }
			set
			{
				this.OnPropertyValueChange(_.UserConfirmID,_UserConfirmID,value);
				this._UserConfirmID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ConfirmDate
		{
			get{ return _ConfirmDate; }
			set
			{
				this.OnPropertyValueChange(_.ConfirmDate,_ConfirmDate,value);
				this._ConfirmDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Note
		{
			get{ return _Note; }
			set
			{
				this.OnPropertyValueChange(_.Note,_Note,value);
				this._Note = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsSelect
		{
			get{ return _IsSelect; }
			set
			{
				this.OnPropertyValueChange(_.IsSelect,_IsSelect,value);
				this._IsSelect = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserCreateID
		{
			get{ return _UserCreateID; }
			set
			{
				this.OnPropertyValueChange(_.UserCreateID,_UserCreateID,value);
				this._UserCreateID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserCreate
		{
			get{ return _UserCreate; }
			set
			{
				this.OnPropertyValueChange(_.UserCreate,_UserCreate,value);
				this._UserCreate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CreateDate
		{
			get{ return _CreateDate; }
			set
			{
				this.OnPropertyValueChange(_.CreateDate,_CreateDate,value);
				this._CreateDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserModifyID
		{
			get{ return _UserModifyID; }
			set
			{
				this.OnPropertyValueChange(_.UserModifyID,_UserModifyID,value);
				this._UserModifyID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserModify
		{
			get{ return _UserModify; }
			set
			{
				this.OnPropertyValueChange(_.UserModify,_UserModify,value);
				this._UserModify = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ModifyDate
		{
			get{ return _ModifyDate; }
			set
			{
				this.OnPropertyValueChange(_.ModifyDate,_ModifyDate,value);
				this._ModifyDate = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.UID,
				_.CheckNo,
				_.CheckStatus,
				_.CheckType,
				_.PurchaseDate,
				_.IsAllocate,
				_.AllocateDate,
				_.UserAllocate,
				_.UserAllocateID,
				_.DeptCode,
				_.DeptName,
				_.IsConfirm,
				_.UserConfirm,
				_.UserConfirmID,
				_.ConfirmDate,
				_.Note,
				_.IsSelect,
				_.UserCreateID,
				_.UserCreate,
				_.CreateDate,
				_.UserModifyID,
				_.UserModify,
				_.ModifyDate
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_UID,
				_CheckNo,
				_CheckStatus,
				_CheckType,
				_PurchaseDate,
				_IsAllocate,
				_AllocateDate,
				_UserAllocate,
				_UserAllocateID,
				_DeptCode,
				_DeptName,
				_IsConfirm,
				_UserConfirm,
				_UserConfirmID,
				_ConfirmDate,
				_Note,
				_IsSelect,
				_UserCreateID,
				_UserCreate,
				_CreateDate,
				_UserModifyID,
				_UserModify,
				_ModifyDate
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "UID":
                    this._UID = DataHelper.ConvertValue<int>(value);
                    break; 
				case "CheckNo":
                    this._CheckNo = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CheckStatus":
                    this._CheckStatus = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CheckType":
                    this._CheckType = DataHelper.ConvertValue<string>(value);
                    break; 
				case "PurchaseDate":
                    this._PurchaseDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsAllocate":
                    this._IsAllocate = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "AllocateDate":
                    this._AllocateDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserAllocate":
                    this._UserAllocate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserAllocateID":
                    this._UserAllocateID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "DeptCode":
                    this._DeptCode = DataHelper.ConvertValue<string>(value);
                    break; 
				case "DeptName":
                    this._DeptName = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsConfirm":
                    this._IsConfirm = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserConfirm":
                    this._UserConfirm = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserConfirmID":
                    this._UserConfirmID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "ConfirmDate":
                    this._ConfirmDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Note":
                    this._Note = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsSelect":
                    this._IsSelect = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserCreateID":
                    this._UserCreateID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserCreate":
                    this._UserCreate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CreateDate":
                    this._CreateDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserModifyID":
                    this._UserModifyID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserModify":
                    this._UserModify = DataHelper.ConvertValue<string>(value);
                    break; 
				case "ModifyDate":
                    this._ModifyDate = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "UID":
                    return this._UID; 
				case "CheckNo":
                    return this._CheckNo; 
				case "CheckStatus":
                    return this._CheckStatus; 
				case "CheckType":
                    return this._CheckType; 
				case "PurchaseDate":
                    return this._PurchaseDate; 
				case "IsAllocate":
                    return this._IsAllocate; 
				case "AllocateDate":
                    return this._AllocateDate; 
				case "UserAllocate":
                    return this._UserAllocate; 
				case "UserAllocateID":
                    return this._UserAllocateID; 
				case "DeptCode":
                    return this._DeptCode; 
				case "DeptName":
                    return this._DeptName; 
				case "IsConfirm":
                    return this._IsConfirm; 
				case "UserConfirm":
                    return this._UserConfirm; 
				case "UserConfirmID":
                    return this._UserConfirmID; 
				case "ConfirmDate":
                    return this._ConfirmDate; 
				case "Note":
                    return this._Note; 
				case "IsSelect":
                    return this._IsSelect; 
				case "UserCreateID":
                    return this._UserCreateID; 
				case "UserCreate":
                    return this._UserCreate; 
				case "CreateDate":
                    return this._CreateDate; 
				case "UserModifyID":
                    return this._UserModifyID; 
				case "UserModify":
                    return this._UserModify; 
				case "ModifyDate":
                    return this._ModifyDate; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","vCheckQuery");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UID = new Field("UID","vCheckQuery","UID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CheckNo = new Field("CheckNo","vCheckQuery","CheckNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CheckStatus = new Field("CheckStatus","vCheckQuery","CheckStatus");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CheckType = new Field("CheckType","vCheckQuery","CheckType");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field PurchaseDate = new Field("PurchaseDate","vCheckQuery","PurchaseDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsAllocate = new Field("IsAllocate","vCheckQuery","IsAllocate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field AllocateDate = new Field("AllocateDate","vCheckQuery","AllocateDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserAllocate = new Field("UserAllocate","vCheckQuery","UserAllocate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserAllocateID = new Field("UserAllocateID","vCheckQuery","UserAllocateID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptCode = new Field("DeptCode","vCheckQuery","DeptCode");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptName = new Field("DeptName","vCheckQuery","DeptName");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsConfirm = new Field("IsConfirm","vCheckQuery","IsConfirm");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserConfirm = new Field("UserConfirm","vCheckQuery","UserConfirm");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserConfirmID = new Field("UserConfirmID","vCheckQuery","UserConfirmID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ConfirmDate = new Field("ConfirmDate","vCheckQuery","ConfirmDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Note = new Field("Note","vCheckQuery","Note");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsSelect = new Field("IsSelect","vCheckQuery","IsSelect");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreateID = new Field("UserCreateID","vCheckQuery","UserCreateID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreate = new Field("UserCreate","vCheckQuery","UserCreate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CreateDate = new Field("CreateDate","vCheckQuery","CreateDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserModifyID = new Field("UserModifyID","vCheckQuery","UserModifyID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserModify = new Field("UserModify","vCheckQuery","UserModify");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ModifyDate = new Field("ModifyDate","vCheckQuery","ModifyDate");
		}
		#endregion

 
	}
}

